package com.woniuxy.util;

import com.alibaba.csp.sentinel.adapter.servlet.callback.RequestOriginParser;
import lombok.extern.slf4j.Slf4j;

import javax.servlet.http.HttpServletRequest;

//@Component
@Slf4j
public class RequestOriginParserDefinition implements RequestOriginParser {
    @Override
    public String parseOrigin(HttpServletRequest request) {
        String servername = request.getParameter("servername");
        return servername;
    }
}
